export default (app: any) => {
  app.directive('preReClick', {
    mounted(el: any, binding: any) {
      el.addEventListener('click', () => {
        if (!el.disabled) {
          el.disabled = true;
          setTimeout(() => {
            console.log(binding.value,'binding.value');
            
            el.disabled = false;
          }, binding.value || 2000)
        }
      })
    }
  })
}